home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_12_05
/
plauger
/
ioassign.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-03-08
|
404b
|
19 lines
--------------- Listing 7: The ios assignment operator ------------
// iosassign -- ios::operator=(const ios&)
#include <ios>
ios& ios::operator=(const ios& rhs)
{ // assign to an ios
if (this != &rhs)
{ // safe to copy
_Sb = rhs._Sb;
_State = rhs._State;
copyfmt(rhs); // cause any throw at end
}
return (*this);
}